package com.xiaoze.steampy.util;

import com.xiaoze.steampy.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

/**
 * @author 小泽
 * @create 2022-03-28  11:12
 * 记得每天敲代码哦
 */
public class ShiroUtil {
    public static AccountProfile getProfile(){
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}